<!DOCTYPE html>
<%
/**
	用户分析->新增客户 installation.jsp
	数据来源：SpGetCustomerStatistics.java(Sp_GetCustomerStatistics)
	
	version 1.0
*/
%>
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<html>
<head>
<%@ include file="/pages/inc/header.jsp"%>
<title><%=systemTitle %></title>
</head>
<% 
	String tu = (String)request.getAttribute("timeunit");
%>
<body class="report">
	<div id="doc">
		<%@ include file="/pages/common/pageheader.jsp"%>
		<div class="bd clearfix">
			<div id="leftColContainer">
				<div class="leftCol">
					<jsp:include page="/pages/common/pagemenu.jsp" flush="true">
						<jsp:param name="itemid" value="item2" />
						<jsp:param name="pageid" value="wish" />
					</jsp:include>
				</div>
			</div>
			<div id="mainContainer">
				<div class="contentCol">
					<form id="searchForm" action="render?pageid=wish" method="POST"></form>
					<form id="exportForm" action="render?pageid=wish&action=export" method="POST"></form>
					<input type="hidden" id="action_stats" value="wish"> 
					<input type="hidden" id="time_unit" value="<%=request.getAttribute("timeunit")%>">

					<%-- <div id="app-digest" class="mod">
						<div class="overview-header clearfix">
							<h2 style="margin-top: 5px;">
								时段内新增客户：&nbsp;&nbsp;<span id="overview">0</span>
							</h2>
							<div class="filterPanel">
							<a action-frame="tip_ins" title="" style="float: right;margin-top: 1px;"> <img src="<%=contextPath%>/styles/images/help_blue.png"></img></a>
								<div class="datepickerPanel borders" style="margin-right: 15px;">
									
								</div>
							</div>
						</div>
					</div> --%>

					<!-- table begin -->
					<div id="wish_table" class="mod mod1 parent-table">
						<div class="mod-header radius">
							<h2>最新预约列表</h2>
							<!-- <div class="option">
								<span title="导出" class="icon export exportCsv"></span>
							</div> -->
						</div>
						<div id="data-load" class="mod-body ">
							<table width="100%" cellspacing="0" border="0" class="data-load ">
								<thead>
									<tr>
										<!-- <th>编号</th> -->
										<th>玩具编号</th>
										<th>主题</th>
										<th>用户姓名</th>
										<th>地址</th>
										<th>电话</th>
										<th>预约时间</th>
										<th>库存</th>
										<th>预约状态</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody id="data-list">
								</tbody>
							</table>
							<div class="wait-load" style="display: none;">
								<img src="<%=contextPath%>/styles/images/ajax-loader.gif">
							</div>
						</div>
						<div class="mod-bottom clearfix" style="display: none;">
							<div class="fr pagination"></div>
						</div>
					</div>
					<!-- table end  -->
				</div>
			</div>
		</div>
	</div>
	<div class="hiddenft"></div>
</div>

<%@ include file="/pages/inc/footer.jsp"%>
<script type="text/javascript">
	$(document).ready(function() {
		$.publish('rPage');
	});
	
	function createOrder(wishid){
		 $.ajax({
			type: 'get',
			url: "<%=contextPath%>/render?pageid=wish&action=create&wishid="+wishid,
			dataType: "json",
			success: function(data){
				if(data && data.success){
					alert("创建订单成功，可进行快递操作！"); 
					$.publish('rPage');
				}else{
					alert("创建订单失败!");
				}
			},
			error:function(data){
				alert("创建订单失败!");
			}
		});
	}
</script>
</body>
</html>